package com.googlecode.recycled.lang;

/**
 * <p>Generic (non IO-related) version of {@link java.io.Closeable}. Does not
 * declare any checked exception.</p>
 * <p/>
 * <p>Implemented by classes that can (and should) be closed after usage.</p>
 *
 * @author Henryk Konsek
 */
public interface Closeable {

    /**
     * <p>Closes the instance. At the exit of this method all resources associated with the instance
     * have been released.</p>
     * <p/>
     * <p>Please note that this method do not declare any checked exceptions
     * (as opposed to the {@link java.io.Closeable#close()}).</p>
     */
    void close();

}
